package com.Spring.SpringSpms.model;

/**Sprint Entity represents Sprint's , The Project's can have.
  *Sprint has Many-To-One relationship with Project.
  *Sprint has Many-To-One relationship with Status.
**/

import java.io.Serializable;
import java.util.List;
import java.util.ArrayList;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Sprint implements Serializable
{
	private Integer sprint_id;

	private String sprint_name;

	@DateTimeFormat(pattern="dd/mm/yyyy")
	private Date start_date = new Date();

	@DateTimeFormat(pattern="dd/mm/yyyy")
	private Date end_date = new Date();

	private int project_id;

	private Integer status_id;

	public Integer getSprint_id() {
		return sprint_id;
	}

	public void setSprint_id(Integer sprint_id) {
		this.sprint_id = sprint_id;
	}

	public String getSprint_name() {
		return sprint_name;
	}

	public void setSprint_name(String sprint_name) {
		this.sprint_name = sprint_name;
	}

	public Date getStart_date() {
		return start_date;
	}

	public void setStart_date(Date start_date) {
		this.start_date = start_date;
	}

	public Date getEnd_date() {
		return end_date;
	}

	public void setEnd_date(Date end_date) {
		this.end_date = end_date;
	}

	public int getProject_id() {
		return project_id;
	}

	public void setProject_id(int project_id) {
		this.project_id = project_id;
	}

	public Integer getStatus_id() {
		return status_id;
	}

	public void setStatus_id(Integer status_id) {
		this.status_id = status_id;
	}

//	private List<Story> storyList = new ArrayList<Story>();



} 
